home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.486 < prev    next >
Text File  |  1992-02-06  |  1KB  |  20 lines

  1. {\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw13280
  3. \paperh7680
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b0\i0\ul0\fs28 Speaker Listener parameters byte array\
  8. \
  9. Q: I've tried everything, and I can't seem to get the Speaker/Listener connection to work correctly for byte-arrays.  I can transmit null-terminated strings, but byte-arrays just won't work. I even read all the documentation for the Speaker and Listener classes. How does this work?\
  10. \
  11. A: The documents are wrong.  The man page on msgwrap has the solution, though. You need to declare the parameter as (byte *) IN YOUR .MSG FILE, but keep the parameter declared as (char *)\
  12. in your method declarations.  Note that you still should follow every (byte *) with a (int) that specifies the length of the byte array. Note also that, to receive byte-arrays, you should declare the parameter as (byte **), and follow it with a (int *), but should leave the declaration as (char **) for your methods.\
  13. \
  14. QA486\
  15. \
  16. Valid for 1.0\
  17. Valid for 2.0\
  18. \
  19.  
  20.